package ProjetCorba;

/**
 * Interface definition : Colis
 * 
 * @author OpenORB Compiler
 */
public class ColisPOATie extends ColisPOA
{

    //
    // Private reference to implementation object
    //
    private ColisOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public ColisPOATie(ColisOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public ColisPOATie(ColisOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public ColisOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(ColisOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Read accessor for numCol attribute
     */
    public short numCol()
    {
        return _tie.numCol();
    }

    /**
     * Read accessor for tarif attribute
     */
    public short tarif()
    {
        return _tie.tarif();
    }

    /**
     * Operation getStatus
     */
    public String getStatus(short idCol)
        throws ProjetCorba.Col_Inconnu
    {
        return _tie.getStatus( idCol);
    }

    /**
     * Operation setStatut
     */
    public void setStatut(String enume)
    {
        _tie.setStatut( enume);
    }

    /**
     * Operation getPrix
     */
    public float getPrix()
    {
        return _tie.getPrix();
    }

    /**
     * Operation setPrix
     */
    public void setPrix(float tarif)
    {
        _tie.setPrix( tarif);
    }

}
